package com.neuedu.vehicleanalysisapi.controller;

import com.neuedu.vehicleanalysisapi.pojo.bSalesMode;
import com.neuedu.vehicleanalysisapi.service.bSalesModeService;
import com.neuedu.vehicleanalysisapi.util.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class bSalesModeController {
    @Autowired
    private bSalesModeService bSalesModeService;

    @GetMapping("/queryAllSalesMode")
    public ResponseBody<List<bSalesMode>> queryAllSalesMode() {
        List<bSalesMode> bSalesMode = bSalesModeService.queryAllSalesMode();
        ResponseBody responseBody = new ResponseBody("200", "成功", bSalesMode);
        return responseBody;
    }
}
